package model

type Student struct {
	Id       int    `json:"id"`
	Number   string `json:"number"`
	Name     string `json:"name"`
	Password string `json:"password"`
	ClassID  int    `json:"class_id"`
	// 表之间的关联关系
	Lesson []Lesson `json:"lesson" gorm:"many2many:lesson_student;"`
}

func (Student) TableName() string {
	return "student"
}
